class Town < ActiveRecord::Base
  has_many :shops
     validates :name, :length => {:within => 3..25}
     validates :day, :length => {:within => 3..25}
     validates :night, :length => {:within => 3..25}
     validates :keyword, :length => {:within => 3..50}
     validates_inclusion_of :status, :in => %w[banned approved]
end
